﻿using ORMDemo.Core.Mapping;
using ORMDemo.Core.Validate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ORMDemo.Model
{
    [MappingTable("Company")]
    public class CompanyModel : BaseModel
    {
        [ValidateRequired] //设置不能为空
        public string Name { get; set; }
        public DateTime CreateTime { get; set; }
        public int CreatorId { get; set; }
        public int? LastModifierId { get; set; }
        public DateTime? LastModifierTime { get; set; }
    }
}
